import request from '@/utils/request'

// 查询用户信息详细
export function getDeptUser() {
  return request({
    url: '/comonUser/comonUser/getDeptUser',
    method: 'get',
  })
}
// 查询用户日程列表
export function listSchedule(query) {
  return request({
    url: '/userSchedule/schedule/list',
    method: 'get',
    params: query
  })
}

export function UserlistSchedule(query) {
  return request({
    url: '/userSchedule/schedule/listUser',
    method: 'get',
    params: query
  })
}

// 查询用户日程详细
export function getSchedule(scheduleId) {
  return request({
    url: '/userSchedule/schedule/' + scheduleId,
    method: 'get'
  })
}

// 新增用户日程
export function addSchedule(data) {
  return request({
    url: '/userSchedule/schedule',
    method: 'post',
    data: data
  })
}

// 修改用户日程
export function updateSchedule(data) {
  return request({
    url: '/userSchedule/schedule',
    method: 'put',
    data: data
  })
}
export function doEdit(data) {
  return request({
    url: '/userSchedule/schedule/doEdit',
    method: 'put',
    data: data
  })
}

// 删除用户日程
export function delSchedule(scheduleId) {
  return request({
    url: '/userSchedule/schedule/' + scheduleId,
    method: 'delete'
  })
}
